package com.toubutu.audio.dto;

import com.toubutu.audio.entity.Comment;
import com.toubutu.common.BaseDto;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 朱鹏杰
 * @version 1.0
 * @date 2024年02月28日 17:32
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CommentDto extends BaseDto<Comment> {

    private Integer replyId;
    private Integer parentId;

    @NotNull(message = "用户id不能为空!")
    private Long userId;

    @NotBlank(message = "评论内容不能为空!")
    private String content;
    private Long replyUserId;

    @NotBlank(message = "视频编码不能为空")
    private String videoCode;

}
